package com.hh.test.design.builder;

public class PartBuilder implements Builder {
	private PartA partA;
	private PartB partB;
	private PartC partC;

	public PartA getPartA() {
		return partA;
	}

	public void setPartA(PartA partA) {
		this.partA = partA;
	}

	public PartB getPartB() {
		return partB;
	}

	public void setPartB(PartB partB) {
		this.partB = partB;
	}

	public PartC getPartC() {
		return partC;
	}

	public void setPartC(PartC partC) {
		this.partC = partC;
	}

	public void createPartA() {
		partA = new PartA("A");
	}

	public void createPartB() {
		partB = new PartB("B");

	}

	public void createPartC() {
		partC = new PartC("C");
	}

	public Product create() {
		return new Product(partA, partB, partC);
	}
}
